package practice_04;

public class Parent {
    public int money = 1000;

    public void give() {
        System.out.println(money);
    }

    Parent() {
//        System.out.println("Parent:"+this.money);
    }
}

class Son extends Parent {
    public int money = 500;

    public void PrintM() {
        System.out.println(money);
        System.out.println(super.money);
    }

    public final void give() {
        System.out.println(this.money);
    }

    public void give(int s) {
        System.out.println("??");
    }

    Son() {
//        super();
//        System.out.println("Son:"+this.money);
    }
//    @Override
//    public void give(){
//        System.out.println(money/2);
//    }
}